package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.WantBuyOrder;
import com.sc.nft.entity.vo.WantBuyOrderWebPageVO;
import org.apache.ibatis.annotations.Param;

/**
 * @author 刘国航
 * @desc
 * @since 2024/12/19 19:56
 */
public interface WantBuyOrderMapper extends BaseMapper<WantBuyOrder> {

    /**
     * 非共识区
     *
     * @param page
     * @param orderType
     * @param relationId
     * @return
     */
    IPage<WantBuyOrderWebPageVO> exitConsensusPage(Page page, @Param("orderType") int orderType, @Param("relationId") Long relationId, @Param("excludeUserId") Long excludeUserId);

    /**
     * 共识区
     *
     * @param page
     * @param orderType
     * @param relationId
     * @return
     */
    IPage<WantBuyOrderWebPageVO> consensusPage(Page page, @Param("orderType") int orderType, @Param("relationId") Long relationId, @Param("excludeUserId") Long excludeUserId);

}
